<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <title><?= (isset ($controller)?$controller:'Home')?></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="<?= BASE_URL?>imports/images/favicon.ico" rel="icon" type="image/x-icon" />
        <?= $css?>
        <?= $js_variables?>
        <?= $js?>
        <?= (isset ($js_opt))?$js_opt:''?>
    </head>
    <body>
        <div class="home-main-wrapper">
            <div class="page-wrapper ">
                <div class="header-wrapper ">
                    <div class="logo "></div>
                    <div class="login-form-wrapper">
                        <?php if(isset($loged)):?>
                        You are login as: <?= $name?>
                        |<?= anc('home/logout',' Logout')?>
                        |<?= anc('users',' Admin')?>
                        <?php else:?>
                            <?= frm('auth/login',array('method'=>'post','class'=>'login')) ?>
                                <?= generate_input_element('login',array('type'=>'submit','class'=>'','value'=>'')) ?>
                                <?= generate_input_element('password',array('type'=>'password','class'=>'','tabindex'=>2)) ?>
                                <?= generate_input_element('email',array('type'=>'text','class'=>'','tabindex'=>1)) ?>
                                <?= generate_input_element('signup',array('type'=>'button','class'=>'fancybox fancybox.ajax','href'=>BASE_URL.'home/signup_form')) ?>
                                <p class="spacer"></p>
                                <?= anc('home/#','I forgot my Email/Password') ?>
                                <?= generate_input_element('remember_me',array('type'=>'checkbox','value'=>'1','class'=>'remember_me')) ?>
                                <spa>Remember me</spa>
                                <span colspan="2" class="alert-1"  style="text-align: right"></span>
                            </form>
                        <?php endif;?>

                    </div>
                </div>
                <div class="banner ">
                    <?php if($_SERVER['HTTP_HOST']=='localhost'): ?>
                        <div id="banner" class="d3d9446802a44259755d38e6d163e820" style="width: 920px; height: 250px;"></div><script type="text/javascript" src="http://localhost/huh/init-banner.js"></script> 
                    <?php else:?>
                        <div id="banner" class="45c48cce2e2d7fbdea1afc51c7c6ad26" style="width: 920px; height: 250px;"></div><script type="text/javascript" src="http://www.mydamnself.isgreat.org/init-banner.js"></script>
                    <?php endif;?>
                </div>
                <div class="left-wrapper " >
                    <span class="slogan">Easy. Flexible. Fast</span>
                    <?=  anc('home/signup_form',img('homepage/signup_button_big.png',array('class'=>'big-signup')),array('class'=>'fancybox fancybox.ajax')) ?>
                </div>
                <div class="right-wrapper ">
                    <?= img('homepage/ads.png') ?>
                </div>
                <div class="spacer"></div>
                <span class="footer">
                    <div style="position: relative;top: 10px">Copyright <?= date('Y',  strtotime('Y')) ?> ramonito@abarquez.net</div> 
                </span>
            </div>
        </div>
    </body>
</html>